package hcn.protocol.brandnew.zhenliao.jianyan;

import hcn.protocol.brandnew.BaseRequest;
import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;
import org.atag.sysrouter.annotation.DictionaryMapping;

/**
 * @author z
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class LabReportItemTrendQueryRequest extends BaseRequest {
    @XmlElement(name = "Request")
    private Request request;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Request {
        /**
         * 就诊机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;

        /**
         * 业务系统患者档案ID
         */
        @XmlElement(name = "SourcePatientId")
        private String sourcePatientId;

        /**
         * 患者类型代码
         */
        @XmlElement(name = "PatientType")
        @DictionaryMapping("CV09_00_404")
        private String patientType;

        /**
         * 检验项目代码
         */
        @XmlElement(name = "TestId")
        private String testId;

        /**
         * 日期时间上限
         */
        @XmlElement(name = "EffectiveTimeHigh")
        private String effectiveTimeHigh;

        /**
         * 日期时间下限
         */
        @XmlElement(name = "EffectiveTimeLow")
        private String effectiveTimeLow;

        /**
         * 证件类型
         */
        @XmlElement(name = "IdCardCode")
        @DictionaryMapping(id = "CV02_01_101")
        private String idCardCode;

        /**
         * 证件号码
         */
        @XmlElement(name = "IdCard")
        private String idCard;

    }
}